package com.bw.lib_storage.db.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Date

@Entity(tableName = "history")
data class History(
    @ColumnInfo(name = "id")
    @PrimaryKey(autoGenerate = true)
    var id: Int,

    @ColumnInfo(name = "title")
    var title: String,

    @ColumnInfo(name = "content")
    var content: String,

    //数据库升级3新增字段
    @ColumnInfo(name = "type")
    var type: String ,

    @ColumnInfo(name = "query_time")
    var queryTime: Date = Date()    //新增时间字段,默认当前时间
)
